<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">

    <h:head>
        <title>Notário</title>

        <meta charset="utf-8" />

        <link rel="stylesheet" href="media/css/style.css"/>
        <link rel="stylesheet" href="media/css/font-awesome/css/font-awesome.min.css"/>
    </h:head>

    <h:body>

        <header>
            <div id="header_wrapper">
                <h1>
                    <a href="index.xhtml">
                        <img src="media/images/notario.png" alt="Notário" title="Notário" />
                    </a>
                </h1>

                <a class="toggleMenu" href="#">Menu</a>
                
                <nav id="main_menu">
                    <ul>
                        <a id="caixa" href="indexCaixa.xhtml"><li>Caixa</li></a>
                        <a id="protocolo" href="indexProtocolo.xhtml"><li>Protocolo</li></a>
                        <a id="selo" href="indexSelo.xhtml"><li>Selo</li></a>
                        <a id="imovel" href="indexImovel.xhtml"><li>Imóvel</li></a>
                        <a id="protesto" href="indexProtesto.xhtml"><li>Protesto</li></a>
                        <a id="firma" href="indexFirma.xhtml"><li>Firma</li></a>
                        <a id="ep" href="indexEP.xhtml"><li>Escrituras e Procurações</li></a>
                        <a id="ted" href="indexTituloDocumentos.xhtml"><li>Títulos e Documentos</li></a>
                        <a id="cliente" href="indexCliente.xhtml"><li>Cliente</li></a>
                    </ul>
                </nav>

                <div id="user_menu">                                                          
                    <a  href="mensagens.xhtml" class="fa fa-envelope fa-lg"></a>
                    <a  title="Administração" href="administracao.xhtml" class="fa fa-gear fa-lg"></a>
                    <p:commandLink value="#{managerPrincipal.nome}" title="#{managerPrincipal.nome}" actionListener="#{managerPrincipal.visualizarUsuario()}" />
                    <p:commandLink value="Sair" title="Sair" actionListener="#{managerPrincipal.logout()}" />
                </div>
            </div>
        </header>

        <section id="content">
            <section id="content_wrapper">
                <h:form prependId="false"></h:form>

                <a href="#" class="back" onclick="history.go(-1)"/>
                <h1>
                    <ui:insert name="title"></ui:insert>                
                </h1>

                <ui:insert name="content"></ui:insert>
            </section>

            <footer>
                <hr/>
                <p id="copyright">Copyright © 2015 - Todos os Direitos  Reservados</p>
                <p><a href="http://www.foxinline.com">Fox Inline Technologies</a></p>
            </footer>
        </section>

        <script src="media/js/autoNumeric.js"></script>
        <script src="media/js/goTop.js"></script>
        <script src="media/js/menu.js"></script>
        <script src="media/js/widthFix.js"></script>
        <script src='media/js/calendar.js'></script>
        
        <script>
            $(document).ready(function() {
                widthFix();
            });
        </script>

    </h:body>

</html>
